package com.wanda.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.dao.OrderDAO;
import com.wanda.model.OrderModel;
import com.wanda.model.Pay_TypeModel;
import com.wanda.service.OrderService;

/**   
*    
* 项目名称：wanda_java2
* 类名称：OrderServiceImpl   
* 类描述：   订单sevice实现类
* 创建人：SunBGLARE
* 创建时间：2016年5月26日 下午9:19:07   
* 版本：1.0.1     
*/
@Service
public class OrderServiceImpl implements OrderService {

	@Autowired
	private OrderDAO orderDAO;
	
	public int addOrder(OrderModel order) {
		return orderDAO.addOrder(order);
	}

	public int updateOrder(OrderModel order) {
		return orderDAO.updateOrder(order);
	}

	public int deleteOrder(OrderModel order) {
		return orderDAO.deleteOrder(order);
	}

	public List<OrderModel> selectAll() {
		return orderDAO.selectAll();
	}

	public List<OrderModel> selectBySql(String SearchSql) {
		return orderDAO.selectBySql(SearchSql);
	}

	public List<Pay_TypeModel> selectByPay_TypeSql(String SearchSql) {
	
		return orderDAO.selectByPay_TypeSql(SearchSql);
	}

	public List<OrderModel> selectOrderAndRoomBySql(String SearchSql) {
		// TODO Auto-generated method stub
		return orderDAO.selectOrderAndRoomBySql(SearchSql);
	}

}
